package cn.com.shopec.erp.financing.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName TblConsignmentSDetaill
 * @Description 代销明细实体
 * @author gujianfeng
 * @date 2013-5-22 上午10:55:27
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "TBL_CONSIGNMENT_S_DETAILL")
public class TblConsignmentSDetaill implements java.io.Serializable {
    /** 主键ID **/
    private String id;
    /** 活动编号 **/
    private String activityNo;
    /** 活动让利比例 **/
    private String activityPercentage;
    /** 货品成本价 **/
    private double costPrice;
    /** 优惠金额 **/
    private double discountAmount;
    /** 订单号 **/
    private String orderNo;
    private double prpPrice;
    private String orderTime;

    /** 扣点比例 **/
    private String pointPercentage;
    /** 货品名称 **/
    private String productName;
    /** 货品编号 **/
    private String productNo;
    /** 货品销售数量 **/
    private int productNum;
    /** 货品销售价 **/
    private double salePrice;
    /** 货品销售金额 **/
    private Double saleTotal;
    /** 销售明细标识 **/
    private int sallFlag;
    /** 供应商结算方式 **/
    private int settlementType;
    /** 结算单据号 **/
    private String statementNo;

    private int deleteFlag;
    /**审核标志**/
    private String checkFlag;
    /**引用**/
    private String ref;
    /**结算标志**/
    private String finFlag;
       
    @Column(name="FIN_FLAG")
    public String getFinFlag() {
		return finFlag;
	}
	public void setFinFlag(String finFlag) {
		this.finFlag = finFlag;
	}
	@Column(name="PART_FLAG")
    public String getCheckFlag() {
		return checkFlag;
	}
	public void setCheckFlag(String checkFlag) {
		this.checkFlag = checkFlag;
	}
	@Column(name="REF_ID")
	public String getRef() {
		return ref;
	}
	public void setRef(String ref) {
		this.ref = ref;
	}
	@Column(name = "DELETE_FLAG")
    public int getDeleteFlag() {
        return this.deleteFlag;
    }
    @Column(name="PRE_PRICE")
    public double getPrpPrice() {
		return prpPrice;
	}

	public void setPrpPrice(double prpPrice) {
		this.prpPrice = prpPrice;
	}

	public void setDeleteFlag(int deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    // Constructors
    /** default constructor */
    public TblConsignmentSDetaill() {
    }

    @Column(name = "ACTIVITY_NO", length = 30)
    public String getActivityNo() {
        return this.activityNo;
    }

    @Column(name = "ACTIVITY_PERCENTAGE", length = 10)
    public String getActivityPercentage() {
        return this.activityPercentage;
    }

    /*
     * @ManyToOne(targetEntity = TblConsignmentSettlement.class, cascade =
     * CascadeType.ALL)
     * 
     * @JoinColumn(name = "statement_no", referencedColumnName = "statement_no",
     * insertable = false, updatable = false) public TblConsignmentSettlement
     * getConsignmentSettlement() { return consignmentSettlement; }
     */
    @Column(name = "COST_PRICE")
    public double getCostPrice() {
        return this.costPrice;
    }

    @Column(name = "DISCOUNT_AMOUNT")
    public double getDiscountAmount() {
        return this.discountAmount;
    }

    @Id
    @Basic(optional = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "ID", unique = true, nullable = false, length = 32)
    public String getId() {
        return this.id;
    }

    @Column(name = "ORDER_NO")
    public String getOrderNo() {
        return this.orderNo;
    }

    @Column(name = "POINT_PERCENTAGE")
    public String getPointPercentage() {
        return this.pointPercentage;
    }

    @Column(name = "PRODUCT_NAME")
    public String getProductName() {
        return this.productName;
    }

    @Column(name = "PRODUCT_NO")
    public String getProductNo() {
        return this.productNo;
    }

    @Column(name = "PRODUCT_NUM")
    public int getProductNum() {
        return this.productNum;
    }

    @Column(name = "SALE_PRICE")
    public Double getSalePrice() {
        return this.salePrice;
    }

    @Column(name = "SALE_TOTAL")
    public Double getSaleTotal() {
        return this.saleTotal;
    }

    @Column(name = "SALL_FLAG")
    public int getSallFlag() {
        return this.sallFlag;
    }

    @Column(name = "SETTLEMENT_TYPE")
    public int getSettlementType() {
        return this.settlementType;
    }

    @Column(name = "STATEMENT_NO")
    public String getStatementNo() {
        return this.statementNo;
    }

    public void setActivityNo(String activityNo) {
        this.activityNo = activityNo;
    }

    public void setActivityPercentage(String activityPercentage) {
        this.activityPercentage = activityPercentage;
    }

    @Column(name = "ORDER_TIME")
    public String getOrderTime() {
        return this.orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    /*
     * public void setConsignmentSettlement(TblConsignmentSettlement
     * consignmentSettlement) { this.consignmentSettlement =
     * consignmentSettlement; }
     */
    public void setCostPrice(double costPrice) {
        this.costPrice = costPrice;
    }

    public void setDiscountAmount(double discountAmount) {
        this.discountAmount = discountAmount;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public void setPointPercentage(String pointPercentage) {
        this.pointPercentage = pointPercentage;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    public void setProductNum(int productNum) {
        this.productNum = productNum;
    }

    public void setSalePrice(double salePrice) {
        this.salePrice = salePrice;
    }

    public void setSaleTotal(double saleTotal) {
        this.saleTotal = saleTotal;
    }

    public void setSallFlag(int sallFlag) {
        this.sallFlag = sallFlag;
    }

    public void setSettlementType(int settlementType) {
        this.settlementType = settlementType;
    }

    public void setStatementNo(String statementNo) {
        this.statementNo = statementNo;
    }
}